from selenium import webdriver
import time

bro = webdriver.Chrome(executable_path='chromedriver')
bro.get('https://qzone.qq.com/')
bro.switch_to.frame('login_frame')
send_bottom = bro.find_element_by_id('switcher_plogin')
send_bottom.click()

user = bro.find_element_by_id('u')
user.send_keys('2907276798')
password = bro.find_element_by_id('p')
password.send_keys('xxxxxx')
login_in = bro.find_element_by_id('login_button')
login_in.click()
time.sleep(5)
bro.quit()